<template>
    <div>
        <h2>  <slot></slot>  </h2>
    </div>
</template>

<script>
export default {
    data () {
      return {}
    },

    methods: {},

    components: {},
}
</script>

<style scoped>
/* :scope 表示css仅仅在这个组件内生效 */
h2{
    font-size: 14px;
    font-weight: normal;
    margin: 10px 0;
}
h2::before{
    content: "";
    width: 2px;
    height: 18px;
    background: #D43C33;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-right: 14px;
}
</style>